using System;
using ZhCun.DbCore.Entitys;

namespace ZhCun.WebCommon.DBModels
{
	public partial class PV_SysRoleMenu : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _PId;
		/// <summary>
		/// PId
		/// </summary>
		[Entity(ColumnName = CNPId, IsNotNull = true)]
		public System.String PId
		{
			get { return _PId; }
			set
			{
				_PId = value;
				base.SetFieldChanged(CNPId) ;
			}
		}

		private System.String _MenuName;
		/// <summary>
		/// MenuName
		/// </summary>
		[Entity(ColumnName = CNMenuName, IsNotNull = true)]
		public System.String MenuName
		{
			get { return _MenuName; }
			set
			{
				_MenuName = value;
				base.SetFieldChanged(CNMenuName) ;
			}
		}

		private System.Boolean _IsApi;
		/// <summary>
		/// IsApi
		/// </summary>
		[Entity(ColumnName = CNIsApi, IsNotNull = true)]
		public System.Boolean IsApi
		{
			get { return _IsApi; }
			set
			{
				_IsApi = value;
				base.SetFieldChanged(CNIsApi) ;
			}
		}

		private System.String _RoleId;
		/// <summary>
		/// RoleId
		/// </summary>
		[Entity(ColumnName = CNRoleId, IsNotNull = true)]
		public System.String RoleId
		{
			get { return _RoleId; }
			set
			{
				_RoleId = value;
				base.SetFieldChanged(CNRoleId) ;
			}
		}

		private System.Int64 _IsRoleMenu;
		/// <summary>
		/// IsRoleMenu
		/// </summary>
		[Entity(ColumnName = CNIsRoleMenu, IsNotNull = true)]
		public System.Int64 IsRoleMenu
		{
			get { return _IsRoleMenu; }
			set
			{
				_IsRoleMenu = value;
				base.SetFieldChanged(CNIsRoleMenu) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNPId = "PId";
		public const string CNMenuName = "MenuName";
		public const string CNIsApi = "IsApi";
		public const string CNRoleId = "RoleId";
		public const string CNIsRoleMenu = "IsRoleMenu";
		#endregion

	}
}
